package cn.ddiancan.xddcloud.psc.audit.service;

import cn.ddiancan.xddcloud.psc.audit.domain.AuditLogVO;
import cn.ddiancan.xddcloud.psc.audit.feign.AuditRemoteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
public class AuditClientService {

    @Autowired
    private AuditRemoteService auditRemoteService;

    @Async
    public void addSystemLog(AuditLogVO auditLogVO) {
        auditRemoteService.addLog(auditLogVO);
    }
}
